package org.fluidindia.ria.library.event
{
	import flash.events.Event;
	

	/**
	 * This event is raised by the main navigation to tell the Navigation controller to
	 * initiate actions for changes in view.
	 * 
	 */
	public class ViewChangeEvent extends Event
	{
		public static var VIEW_CHANGE_EVENT:String = "<nav>ViewChangeEvent</nav>"

		public var targetViewName:String;
		public var originatorViewName:String;
		public var information:Object;
				
		public function ViewChangeEvent(targetViewName:String, originatorViewName:String = "", information:Object = "")
		{
			super(VIEW_CHANGE_EVENT, true, false);
			
			this.targetViewName = targetViewName;
			this.originatorViewName = originatorViewName;
			this.information = information;
		}
	}
}